package wrapper;

public class IntegerDemo {
    public static void main(String[] args) {
        /*Integer i1 = new Integer(5);
        Integer i2 = new Integer(5);
        System.out.println(i1 == i2);
        System.out.println(i1.equals(i2));

        Integer i3 = Integer.valueOf(-128);
        Integer i4 = Integer.valueOf(-128);
        System.out.println(i3 == i4);
        System.out.println(i3.equals(i4));*/

        /*Integer i = Integer.valueOf(5);
        int i1 = i.intValue();

        Integer i2 = 5;
        int i3 = i2;
*/

        int max = Integer.MAX_VALUE;
        int min = Integer.MIN_VALUE;
        System.out.println(max);
        System.out.println(min);

        String in ="40";
        int i = Integer.parseInt(in);
        System.out.println(i);
        double d = Double.parseDouble(in);
        System.out.println(d);




    }
}
